import { StrictMode, Suspense } from 'react'
import { createRoot } from 'react-dom/client'

import './index.css'
// 路由
import router from './router'
import { RouterProvider } from 'react-router-dom'

// 状态管理
import Store from './store'
import { Provider } from 'react-redux'

// 自适应样式 
import 'lib-flexible'



createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <Suspense fallback={<div>Loading...</div>}>
      <Provider store={Store}>
        <RouterProvider router={router} />
      </Provider>
    </Suspense>
  </StrictMode>,
)
